function arg1(name: string, age: number, adress?: string) {
    const argNum = arguments.length
    console.log(argNum)
}

const arg2 = (name: string, age: number, adress?: string): void => {
    // const argNum = arguments.length // error: arguments not defined
}

export function test_arguments() {
    console.log("===> test_arguments()")
    arg1("a", 1, "aa")
    console.log("---------------")
    arg1("a", 1)

    console.log("-------end--------")
}

// test_arguments()